package com.zmn.oms.third.yajule.service;

import com.zmn.oms.common.exception.OmsBaseException;

/**
 * 雅居乐渠道对接接口
 *
 * @author xiewenbing
 * @date 2020/08/03
 */
public interface YajuleService {

    /**
     * 获取支付链接
     * @param orderId
     * @return
     */
    String getPayUrl(Long orderId) throws OmsBaseException;

    /**
     * 处理支付结果回调
     * @param resultData
     * @return 0，成功
     */
    int handlePayResultData(String resultData) throws OmsBaseException;

    /**
     * 判断是否为雅居乐平台渠道
     * @param channelId
     * @return
     */
    boolean determinYajuleChannel(Integer channelId);
}
